/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cput.tp.patterns.behaviour;

import java.util.Scanner;

/**
 *
 * @author Malotana
 */
public class NewClass {
    public static void main(String []args){
        Scanner input = new Scanner(System.in);
              
        System.out.println("Please enter the number of start to display :");
        int number = input.nextInt();
        
        String star[] = new String[number];
        star[0] = "";
        for(int i = 0; i < number; i++){
            for(int j = 0;j < i+1; j++){
              star[i] += "*";
            }     
            if(i+1 < number)
                star[i+1] = "";
        }
        
        for(int i = 0 ; i < number ;i++)
         System.out.println(star[i]);
    }
}
